package cn.tedu.spring.auto;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/*
* 测试类
* */
public class TestUserCache {
    public static void main(String[] args) {
//        通过注解获取到Ioc对象
        ApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu.spring.auto");

        UserCache usercache = context.getBean(UserCache.class);

        System.out.println("usercache = " + usercache);

    }
}
